<template>
	<div class="app-container">
		<editor :curValue="content" @input="newContent" />
	</div>
</template>
<script>
	//引入组件
	import Tinymce from '@/components/Tinymce/index'
	export default {
	//注册组件
		components: {
			'editor': Tinymce
		},
		data() {
			return {
					content:''
				}
		},
		methods: {
			newContent(val) {
				console.log(val); //获取输入内容
			}
		}
	}
</script>